package com.company.cloud.common.mq.redis.client;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.company.cloud.common.constant.ConfigConstants;
import com.company.cloud.common.mq.redis.client.factory.impl.RedisMQSpringClientFactory;

@Configuration
@ConditionalOnProperty(value = ConfigConstants.CONFIG_REDIS_MQ_ENABLED,havingValue = "true")
public class RedisMQConfig {
	
	
	@Bean
	public RedisMQSpringClientFactory redisMQSpringClientFactory2() {
		RedisMQSpringClientFactory redisMQSpringClientFactory=new RedisMQSpringClientFactory();
		return redisMQSpringClientFactory;
	}
	

}
